@extends('backend.template.bootstrap')
@section('content')
    <div id="page-wrapper" >
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">
                        标签管理 <small>Tags.</small>
                    </h1>
                </div>
            </div>
            <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <div class="panel-body">
                                <div class="table-responsive">
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <th>名称</th>
                                            <th>状态</th>
                                            <th>添加时间</th>
                                            <th width="12%">操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        @foreach($tags as $tag)
                                            <tr class="">
                                                <td>{{ $tag->name }}</td>
                                                <td>{{ $tag->getState() }}</td>
                                                <td>{{ $tag->created_at }}</td>
                                                <td>
                                                    <a href="{{ url('backend/categories/'. $tag->id .'/edit') }}">禁用</a> |
                                                    <a class="delete" href="javascript:;">删除</a>
                                                </td>
                                            </tr>
                                        @endforeach
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
        </div>
        <!-- /. PAGE INNER  -->

    </div>
@endsection
